<script type="text/javascript">
    $(document).ready(function() {
        var i = <?=$iTime?>;
        setInterval(
            function () {
                i--;
                $('#i-clock').html(i);
                if (i == 1) {
                    window.location.href = '/';
                }
            },
            250
        );
    });
</script>